package me.ree.zkproduct.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import me.ree.zkproduct.dto.PageQueryDTO;
import me.ree.zkproduct.entity.Product;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author ree
 * @since 2024-05-17
 */
public interface IProductService extends IService<Product> {

    Product getProductByCode(String productCode);

    IPage<Product> getProductsPage(PageQueryDTO<Product> pageQueryDTO);

    int reduceStock(Product product);
}
